gtkplacessidebar.c: add bookmark null checking
authorGeyslan G. Bem <geyslan@gmail.com>
Tue, 27 Apr 2021 14:42:55 +0000 (11:42 -0300)
committerGeyslan G. Bem <geyslan@gmail.com>
Tue, 27 Apr 2021 14:58:31 +0000 (11:58 -0300)
commit1635998ac3482abf6153f857e8a16c8b8cf85158
tree780dba8064aefe3ef4ae7f6e12708c43117174a0
parentb23529d940c17bce03a8b8c2c29a11f07800e962
gtkplacessidebar.c: add bookmark null checking

This fixes nautilus crash and perhaps other callers issues.
Nautilus (and sometimes glib) crashes with malformed URI inside of the
bookmarks file .config/gtk-3.0/bookmarks when it has no LABEL.

This is result from the closed glib MR #2065 analysis and agreement.
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2065#note_1091979

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
gtk/gtkplacessidebar.c